: $('div[class=backtop]').fadeOut(); scrollValue > 250 ? $('.search_history').addClass("search_history1") : $('.search_history').removeClass("search_history1"); }); $('#backtop').click(function () { $("html,body").animate({scrollTop: 0}, 200); }); } //JS QRCODE var pageUrl = toUtf8(window.location.href); $("#weixin-share-qrcode").qrcode({ render: "table", //table方式 width: 160, //宽度 height: 150, //高度 text: pageUrl //任意内容 }); $('.tooltip').jBox('Tooltip'); var downloadUrl = toUtf8("http://t.cn/8seYW6R"); var downLoadModal = new jBox('Modal', { width: 350, closeButton: 'title', title: '手机下载APP,扫描下面二维码', }); downLoadModal.setContent(""); $("#download-app").click(function () { downLoadModal.open(); }); var shareModal = new jBox('Modal', { width: 350, closeButton: 'title', title: '微信扫描下面二维码', }); shareModal.setContent($("#weixin-share-qrcode").html()); $("#wechat_icon").click(function () { shareModal.open(); }); //手机端顶部下载提示 $(".fixtip-close").click(function () { $(".fixedtip").hide(); $.ajax({ type: 'get', dataType: 'json', url: "/pg/web/public/closefixedtip.html", }); }); var fixedTipShowTime = 0; var timestamp = new Date().getTime(); console.log(fixedTipShowTime); if ((timestamp/1000) < fixedTipShowTime) { $(".fixedtip").hide(); } }); //字符转换成UTF8 function toUtf8(str) { var out, i, len, c; out = ""; len = str.length; for (i = 0; i < len; i++) { c = str.charCodeAt(i); if ((c >= 0x0001) && (c <= 0x007F)) { out += str.charAt(i); } else if (c > 0x07FF) { out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F)); out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F)); out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); } else { out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F)); out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); } } return out; }
你好!欢迎来到石猫! [下载APP]
您好!欢迎来到石猫!

全国服务与投诉专线:400-000-2268

查看更多